//package com.shop.loan.controller;
//
//import com.shop.loan.annotation.LoginAuth;
//import com.shop.loan.model.common.Constant;
//import com.shop.loan.model.common.ResResult;
//import com.shop.loan.model.vo.*;
//import io.swagger.annotations.*;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//import springfox.documentation.annotations.ApiIgnore;
//
//import javax.annotation.Resource;
//
//@RestController
//@RequestMapping(Constant.appPrefex + "/baofoo")
//public class BaoFooController {
//
//    @Resource
//    BaoFooService baoFooService;
//
//
//    @LoginAuth
//    @ApiOperation("生成绑卡订单")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "cardNo", value = "银行卡号", dataType = "string", required = true),
//            @ApiImplicitParam(name = "phone", value = "预留手机号码", dataType = "string", required = true),
//            @ApiImplicitParam(name = "year", value = "年份（贷记卡-信用卡）", dataType = "string"),
//            @ApiImplicitParam(name = "month", value = "月份（贷记卡-信用卡）", dataType = "string"),
//            @ApiImplicitParam(name = "cvv2", value = "安全码（贷记卡-信用卡）", dataType = "string"),
//    })
//    @PostMapping("/createBindCardOrder")
//    public ResResult createBindCardOrder(@ApiIgnore HLBBindCardVo hlbBindCardVo) {
//        return baoFooService.readySign(hlbBindCardVo);
//    }
//
//
//    @LoginAuth
//    @ApiOperation("提交绑卡验证码")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "orderId", value = "订单id   createBindCardOrder接口返回", dataType = "string", required = true),
//            @ApiImplicitParam(name = "validateCode", value = "验证码", dataType = "string", required = true),
//    })
//    @PostMapping("/bindCard")
//    public ResResult bindCard(@ApiIgnore HLBBindCardVo hlbBindCardVo) {
//        return baoFooService.confirmSign(hlbBindCardVo);
//    }
//
//
//    @LoginAuth
//    @ApiOperation("解绑银行卡")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "bindId", value = "绑卡id", dataType = "string", required = true),
//    })
//    @PostMapping("/bankCardUnbind")
//    public ResResult bankCardUnbind(@ApiIgnore HLBUnbindCardVo hlbUnbindCardVo) {
//        return baoFooService.aBolishBind(hlbUnbindCardVo);
//    }
//
//
//    @LoginAuth
//    @ApiOperation("查询绑卡列表")
//    @ApiResponses({
//            @ApiResponse(code = 1, message = "成功", response = HLBCardInfoVo.class)
//    })
//    @PostMapping("/bindCardQuery")
//    public ResResult bindCardQuery(@ApiIgnore HLBBindCardQueryVo hlbBindCardQueryVo) {
//        return baoFooService.queryBind(hlbBindCardQueryVo);
//    }
//
//
//    @LoginAuth
//    @ApiOperation("生成支付订单")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "bindId", value = "绑定id", dataType = "string", required = true),
//            @ApiImplicitParam(name = "orderId", value = "平台订单id", dataType = "string", required = true),
//            @ApiImplicitParam(name = "payType", value = "支付类型  P：首款/押金   R：还款   S：屏幕险   B:买断/尾款   PS：押金+屏幕险", dataType = "string"),
//    })
//    @PostMapping("/createPayOrder")
//    public ResResult createPayOrder(@ApiIgnore HLBPayVo hlbPayVo) {
//        return baoFooService.readyPay(hlbPayVo, false, null);
//    }
//
//
//    @LoginAuth
//    @ApiOperation("提交支付验证码")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "payOrderId", value = "支付id  createPayOrder返回", dataType = "string", required = true),
//            @ApiImplicitParam(name = "validateCode", value = "验证码", dataType = "string", required = true),
//    })
//    @PostMapping("/confirmPay")
//    public ResResult confirmPay(@ApiIgnore HLBPayVo hlbPayVo) {
//        return baoFooService.confirmPay(hlbPayVo);
//    }
//
//
//    @PostMapping("/notify")
//    public String notify(BaoFooNotify baoFooNotify) {
//        return baoFooService.notify(baoFooNotify);
//    }
//
//
////    @PostMapping("/withholdTask")
////    public ResResult withholdTask() {
////        hlbService.withholdTask();
////        return new ResResult(Code.SUCCESS);
////    }
//}
